#!/bin/bash
PID=$(ps -ef | grep ILoveMoney-1.0.jar | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
    echo 应用程序已停止
else
    echo kill $PID
    kill $PID
fi

export TZ='Asia/Shanghai'

echo  开始启动

nohup java  -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/server/ILoveMoney/oom.dump  -jar /data/server/ILoveMoney/ILoveMoney-1.0.jar --spring.profiles.active=test >/dev/null 2>&1 &


tail -f /data/log/ILoveMoney/info.log
